﻿using A.M.Storage.Application;
using A.M.Storage.I_Infrastruecure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using W.M.Materiel.Application.IServices;
using W.M.Materiel.Domain.Entity;
using W.M.Materiel.Infrastruecure.IRepository;

namespace W.M.Materiel.Application.Services
{
    public class Bom_item_relation_tableServices : BaseServices<bom_item_relation_table, string>, IBom_item_relation_tableServices
    {
        private readonly IBom_item_relation_tableRepository bom_Item_Relation_TableRepository;

        public Bom_item_relation_tableServices(IBom_item_relation_tableRepository bom_Item_Relation_TableRepository) : base(bom_Item_Relation_TableRepository)
        {
            this.bom_Item_Relation_TableRepository = bom_Item_Relation_TableRepository;
        }

        /// <summary>
        /// BOM和生产
        /// </summary>
        /// <returns></returns>
        public List<bom_item_relation_table> GetBom_Item_Relation_Table()
        {
            var list = bom_Item_Relation_TableRepository.GetShowInfor();
            return list;
        }
    }
}
